package com.service;

import com.dao.StockDao;
import com.vo.StockVO;
import com.vo.req.Request;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl implements StockService{

    @Autowired
    StockDao stockDao;

    @Override
    public StockVO queryById(String goodsId) {
        return stockDao.queryById(goodsId);
    }

    @Override
    public void updateStock(Request request) {
        stockDao.updateStock(request);
    }

    @Override
    public void insertStock(Request request) {
        stockDao.insertStock(request);
    }
}
